package com.xiumu.search.utils;

import org.elasticsearch.index.query.QueryBuilders;
import org.springframework.data.elasticsearch.core.query.NativeSearchQuery;
import org.springframework.data.elasticsearch.core.query.Query;

/**
 * 构建各种查询条件
 * @author xiumu
 * @version 1.0
 * @date 2020/11/6 14:28
 */
public class QueryUtil {

    /**
     * 查询所有
     * @return
     */
    public static Query createQueryMatchAll(){
        return new NativeSearchQuery(QueryBuilders.matchAllQuery());
    }



}
